function [ customer ] = getcustomer( M,i )
    customer = zeros(1,29);
    
    % recency
    customer(0+M(i,1)) = 1;
    % history_segment
    customer(12+M(i,2)) = 1;
    % mens, womens
    customer(20:21) = M(i,4:5);
    % zip_code
    customer(22+M(i,6)) = 1;
    % newbie
    customer(25) = M(i,7);
    % channel
    customer(26+M(i,8)) = 1;
    %intercept
    customer(29) = 1;

end

